
package com.huiquan.management.constant;

import java.util.HashMap;
import java.util.Map;

/**
 * @ClassName: BaseContants
 * @author XuLei
 * @Description: 管理模块的常量定义于此类里
 */
public class ManagementContants {

	/** 数据迁移类型：无. */
	public static final int MIGRATE_TYPE_NULL = 0;
	/** 数据迁移类型：hive. */
	public static final int MIGRATE_TYPE_HIVE = 1;
	/** 数据迁移类型：文件. */
	public static final int MIGRATE_TYPE_FILE = 2;

	public static Map<Integer, String> migrateTypeName = new HashMap<>();

	static {
		migrateTypeName.put(MIGRATE_TYPE_NULL, "无");
		migrateTypeName.put(MIGRATE_TYPE_HIVE, "HIVE");
		migrateTypeName.put(MIGRATE_TYPE_FILE, "文件");
	}

	/** 数据迁移分隔符：TAB. */
	public static final String MIGRATE_SEP_TAB = "TAB";
	/** 数据迁移分隔符：char1. */
	public static final String MIGRATE_SEP_CHAR_1 = "CHAR1";

	public static Map<String, String> migrateSepValue = new HashMap<>();

	static {
		migrateSepValue.put(MIGRATE_SEP_TAB, "\t");
		migrateSepValue.put(MIGRATE_SEP_CHAR_1, "" + (char) 1);
	}
}
